package com.xb.cloud.gateway.client;


/**
 * 
 * @ClassName:  ExceptionWrapper   
 * @Description:异常错误封装类，目的是把异常Exception  返回到outbound，由outbound 统一保存处理。
 * @author: 鲜备科技
 * @date:   2017年12月19日 上午9:55:12   
 *     
 * @Copyright: 2017 www.xianbeitech.com Inc. All rights reserved. 
 *
 */
public class ExceptionWrapper
{

    /**
     * 异常分类目前有 inbound, outbound, adapter
     */
    public static final String ERROR_TYPE_INBOUND = "inbound";
    public static final String ERROR_TYPE_OUTBOUND = "outbound";
    public static final String ERROR_TYPE_ADAPTER = "adapter";
    
    private String errorType;
    
    private String className;
    
    private Exception exception;

    public ExceptionWrapper(String errorType, String className, Exception exception){
        this.errorType = errorType;
        this.className = className;
        this.exception = exception;
    }
    
    public String getErrorType ()
    {
        return errorType;
    }

    public void setErrorType (String errorType)
    {
        this.errorType = errorType;
    }

    public String getClassName ()
    {
        return className;
    }

    public void setClassName (String className)
    {
        this.className = className;
    }

    public Exception getException ()
    {
        return exception;
    }

    public void setException (Exception exception)
    {
        this.exception = exception;
    }    
    

}

